import App from './App'
import uView from "uview-ui";
import './style/global.scss'; // 引入全局样式
// #ifndef VUE3
import Vue from 'vue'
import store from './store'
import alltitleVue from './components/alltitle.vue';
import allBtnVue from './components/allBtn.vue';
Vue.use(uView);

Vue.component('alltitleVue', alltitleVue);
Vue.component('allBtnVue', allBtnVue);
let mpShare = require('uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare)
import './uni.promisify.adaptor'

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()



// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	app.use(uView); // Ensure to use uView in Vue 3
	return {
		app
	}
}
// #endif